﻿@model Hyt.Web.Mvc.Partial.Models.TreeTableData<Object>
<table class="treetable">
    <thead>
        <tr>
            @foreach (var item in Model.Items)
            {
            <th>@item.Name</th>
            }
        </tr>
    </thead>
    <tbody>          
        @foreach (var data in Model.Data)
        {
            <tr data-tt-id="@Model.IdFinder(data)" @if (Model.ParentIdFinder(Model.Data, data) != "")
                                                   {<text>data-tt-parent-id="@Model.ParentIdFinder(Model.Data, data)"</text>}
             >
                @foreach (var item in Model.Items)
                {
                <td>@Html.Raw(item.GetContent(data))</td>
                }
            </tr>
        }
     </tbody>
</table>
